package com.sayice.design.lab4_1.byclass;

import com.sayice.design.util.XmlParse;

/**
 * @author shubing
 */
public class Client {
    public static void main(String[] args) throws Exception {
        XmlParse xmlParse = new XmlParse("classAdapterConfig.xml");
        DataOperator dataOperator = (DataOperator) xmlParse.objectOfTag("adapter");
        String encryptedPassword = dataOperator.doEncrypt("123456");
        String encryptedEmail = dataOperator.doEncrypt("123@qq.com");
        dataOperator.saveUserInfo(1, encryptedPassword, encryptedEmail);
    }
}
